package org.example.Polls;

import java.util.Date;
import java.util.List;

public interface PollService {

	public abstract Poll createPoll (RequestContext ctxt, Poll poll) throws Exception;
	public abstract Poll getPoll (RequestContext ctxt, Long pollId, boolean participantDetails, boolean itemDetails) throws Exception;
	public abstract PollParticipant vote (RequestContext ctxt, Long pollId, Long pollItemId) throws Exception;
	public abstract PollParticipant addParticipant (RequestContext ctxt, String email, Long pollId) throws Exception;
	public abstract PollItem addItem (RequestContext ctxt, String itemValue, Long pollId) throws Exception;
	public abstract List<Poll> findMyPolls (RequestContext ctxt, Date start, Date end) throws Exception;
	public abstract List<Poll> findParticipantPolls (RequestContext ctxt, Date start, Date end) throws Exception;
	public abstract List<Poll> findPublicPolls (RequestContext ctxt, Date start, Date end) throws Exception;
	
	
}
